ACFWF\Models\Objects\BOGO\Calculation B

Total Complexity 83
Dependencies 3
Dependents 1
Total lines 729
Lines of code 274
Logical lines of code 136
Comment lines 342
Methods 27
Properties 8

Methods 27

Method Rating Maintainability Complexity Lines of code
verify_triggers()
A
47 9 36
append_entry()
S
57 8 15
verify_deals()
S
48 6 33
update_entry()
S
59 7 13
is_calculated_from_session()
S
59 7 13
get_sorted_cart_items_by_price()
S
54 5 19
get_all_entries()
S
61 5 13
__construct()
S
62 5 10
process_allowed_deals_data()
S
59 3 16
get_entries_by_cart_item()
S
63 3 11
get_cart_session_hash()
S
58 2 16
calculate_cart_item_spare_quantity()
S
64 3 9
get_entries_by_id_and_coupon()
S
71 2 5
get_entries_by_coupon()
S
71 2 5
clear_temp_entries()
S
65 2 9
confirm_matched_triggers()
S
74 2 5
get_instance()
S
71 2 6
_get_bogo_deal_object()
S
80 1 3
_generate_entry_key()
S
74 1 4
set_bogo_deal()
S
81 1 3
add_notice()
S
69 1 7
get_all_bogo_deals()
S
82 1 3
get_current_bogo_deal()
S
82 1 3
get_notices()
S
82 1 3
clear_session_data()
S
75 1 4
set_session_data()
S
68 1 7
is_item_valid()
S
79 1 3